<?php

declare(strict_types=1);

namespace App\CustHub\Request;

use Mine\MineFormRequest;

class SendConfigRequest extends MineFormRequest
{
    public function listRules(): array
    {
        return [
            'type' => 'required|in:1,2,3,4,5,6,7,8,9,10,11'
        ];
    }

    public function getInfoRules(): array
    {
        $rule = [
            'robot_id' => 'required'
        ];

        return array_merge($this->listRules(),$rule);
    }

    public function saveRules(): array
    {
        $rule = [
            'robot_ids' => 'required',
            'value' => 'required'
        ];

        return array_merge($this->listRules(),$rule);
    }
}